<%@ page language="java" errorPage="error.jsp" pageEncoding="UTF-8"
	contentType="text/html;charset=utf-8"%>
<%@ include file="Common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
<%@ include file="Common/metalink.jsp"%>
<script src="Scripts/common.js" type="text/javascript"></script>
</head>
<body>
	<!-- start of wrapper-->
<div class=" Wrapper">
	<%@ include file="Common/header.jsp"%>
	<%@ include file="Common/menu.jsp"%>
    <!-- start of content -->
    <div class="Content">
        <div class="Right">
            <div class="Bugicon Midbox">分配给我的Bug</div>
            <div class="relative CenterBox Sub">
                <form id="_form" action="mybug.html" method="post">
                <input type="hidden" value="" name="searchBean.orderBy" id="OrderBy" />
                <input id="pageIndex" type="hidden" value="1" name="searchBean.pageIndex" />
                <div id="SearchBox" class="SearchBox left">
                    <span class="icon_bigest left">
                        <label>优先级</label>
                        <select name="searchBean.priority" onchange="SubForm();" class="SearchSelect1 left">
                        <c:forEach var="priority" items="${priorityMap }">
                        	<option value="${priority.key }" ${searchBean.priority == priority.key?"selected='selected'":""}>${priority.value }</option>
                        </c:forEach>
                        </select>
                    </span>
                    <span class="icon_bigest  left">
                        <label>程序</label>
                        <select name="searchBean.program" onchange="SubForm();" class="SearchSelect left">
                        <c:forEach var="program" items="${programMap }">
                        	<option value="${program.key }" ${searchBean.program == program.key?"selected='selected'":""}>${program.value }</option>
                        </c:forEach>
                        </select>
                    </span>
                    <span class="icon_bigest left">
                        <label>关键字</label>
                        <input type="text" name="searchBean.searchContent" value="${searchBean.searchContent }" class="SearchSelect" />
                    </span>
                    <a href="javascript:SubmitForm('_form');" class=" Buttom ">
                    	<span>搜索</span>
                    </a>
                    <p class="clear box">
                        <!-- -->
                    </p>
                </div>
                </form>
                <div class="clear">
                    <!-- -->
                </div>
            </div>
            <p class="clear" >
            <!-- -->
            </p>
            <!--start of solution-->
            <div class="Solution">
                <a href="inputbug.html" class="button-create">
                	<span>提交新Bug</span>
                </a>
                <div class="gantan">
                    <b>未解决的Bug</b>
                </div>
                <div id="page1">
                <c:if test="${empty searchBean.myUnfixBugList}">
                	没有数据
                </c:if>
                <c:if test="${not empty searchBean.myUnfixBugList}">
                <div class="PageTop PageBtm"></div>
                <table border="0" width="100%" cellpadding="10" cellspacing="0" class="Bug box">
                    <tr class="BlueBackground Black BugTitle TableTop">
                        <td width="30%">
                            <b>标题</b>
                        </td>
                        <td width="10%">
                            <a title="按照优先级正序排列"
                                href="javascript:OrderByThis('BugPriorityID');">
                                <b>优先级</b>
                                <img src="Content/images/grayarrow.gif" /></a>
                        </td>
                        <td width="10%">
                            <a title="按照状态正序排列"
                                href="javascript:OrderByThis('BugStatus');">
                                <b>状态</b>
                                <img src="Content/images/grayarrow.gif" /></a>
                        </td>
                        <td width="10%">
                            <a title="按照分配人正序排列"
                                href="javascript:OrderByThis('CurrentHandler');">
                                <b>分配人</b>
                                <img src="Content/images/grayarrow.gif" /></a>
                        </td>
                        <td width="10%">
                            <a title="按照处理人正序排列"
                                href="javascript:OrderByThis('CurrentHandler');">
                                <b>处理人</b>
                                <img src="Content/images/grayarrow.gif" /></a>
                        </td>
                        <td width="10%">
                            <a title="按照模块正序排列"
                                href="javascript:OrderByThis('ProjectModuleID');">
                                <b>模块</b>
                                <img src="Content/images/grayarrow.gif" /></a>
                        </td>
                        <td width="10%">
                            <a title="按照程序正序排列"
                                href="javascript:OrderByThis('ProjectVersionID');">
                                <b>程序</b>
                                <img src="Content/images/grayarrow.gif" /></a>
                        </td>
                        <td width="10%">
                            <a title="按照日期正序排列"
                                href="javascript:OrderByThis('CreateDate');">
                                <b>日期</b>
                                <img src="Content/images/grayarrow.gif" /></a>
                        </td>
                    </tr>
                    <c:forEach var="bug" items="${searchBean.myUnfixBugList }" varStatus="status">
                    <tr class="GrayBackground">
                        <td>
                            <a href="todealbug.html?id=${bug.id }" class="Blue BiggerFont" target="_blank">
                                <b>${bug.id }#&nbsp;${bug.title }</b></a>
                        </td>
                        <c:choose>
                        	<c:when test="${bug.priority == 1 }">
		                        <td class="Green">
		                            ${bug.priorityName }
		                        </td>
                        	</c:when>
                        	<c:when test="${bug.priority == 2 }">
		                        <td class="ThinGreen">
		                            ${bug.priorityName }
		                        </td>
                        	</c:when>
                        	<c:when test="${bug.priority == 3 }">
		                        <td class="Orange">
		                            ${bug.priorityName }
		                        </td>
                        	</c:when>
                        	<c:when test="${bug.priority == 4 }">
		                        <td class="Pink">
		                            ${bug.priorityName }
		                        </td>
                        	</c:when>
                        	<c:when test="${bug.priority == 5 }">
		                        <td class="Red">
		                            ${bug.priorityName }
		                        </td>
                        	</c:when>
                        	<c:otherwise>
                        		<td>
		                            ${bug.priorityName }
		                        </td>
                        	</c:otherwise>
                        </c:choose>
                        <td>
                        <c:choose>
                        	<c:when test="${bug.status == 1 }">
		                        <span class="RedBox">${bug.statusName }</span>
                        	</c:when>
                        	<c:when test="${bug.status == 2 }">
                        		<span class="RedBox GreenBox">${bug.statusName }</span>
                        	</c:when>
                        	<c:when test="${bug.status == 3 }">
                        		<span class="OrangeBox RedBox">${bug.statusName }</span>
                        	</c:when>
                        	<c:otherwise>
                        		<span>${bug.statusName }</span>
                        	</c:otherwise>
                        </c:choose>
                        </td>
                        <td>
                            ${bug.assignerName}
                        </td>
                        <td>
                            ${bug.handlerName}
                        </td>
                        <td>
                            ${bug.moduleName }
                        </td>
                        <td>
                            ${bug.programName }
                        </td>
                        <td>
                            <fmt:formatDate value="${bug.createDate }" pattern="yyyy-MM-dd"/>
                        </td>
                    </tr>
                    </c:forEach>
                </table>
                </c:if>
                </div>
            </div>
            <!--end of solution-->
	        <div class="box">
	            <!-- -->
	        </div>
	        <!--start of solution-->
	        <div class="Solution">
	            <div class="gantan Resolved">
	                <b>已解决的Bug</b>
	            </div>
	            <div id="page2">
	            <c:if test="${empty searchBean.myClosedBugList}">
	            	没有数据
	            </c:if>
	            <c:if test="${not empty searchBean.myClosedBugList}">
	            <div class="PageTop PageBtm"></div>
	            <table border="0" width="100%" cellpadding="10" cellspacing="0" class="Bug box">
	                <tr class="BlueBackground Black BugTitle TableTop">
	                    <td width="30%">
	                        <b>标题</b>
	                    </td>
	                    <td width="10%">
	                        <a title="按照优先级正序排列"
	                            href="javascript:OrderByThis('BugPriorityID');">
	                            <b>优先级</b>
	                            <img src="Content/images/grayarrow.gif" /></a>
	                    </td>
	                    <td width="10%">
	                        <a title="按照状态正序排列"
	                            href="javascript:OrderByThis('BugStatus');">
	                            <b>状态</b>
	                            <img src="Content/images/grayarrow.gif" /></a>
	                    </td>
	                    <td width="10%">
	                        <a title="按照分配人正序排列"
	                            href="javascript:OrderByThis('CurrentHandler');">
	                            <b>分配人</b>
	                            <img src="Content/images/grayarrow.gif" /></a>
	                    </td>
	                    <td width="10%">
	                        <a title="按照处理人正序排列"
	                            href="javascript:OrderByThis('CurrentHandler');">
	                            <b>处理人</b>
	                            <img src="Content/images/grayarrow.gif" /></a>
	                    </td>
	                    <td width="10%">
	                        <a title="按照模块正序排列"
	                            href="javascript:OrderByThis('ProjectModuleID');">
	                            <b>模块</b>
	                            <img src="Content/images/grayarrow.gif" /></a>
	                    </td>
	                    <td width="10%">
	                        <a title="按照程序正序排列"
	                            href="javascript:OrderByThis('ProjectVersionID');">
	                            <b>程序</b>
	                            <img src="Content/images/grayarrow.gif" /></a>
	                    </td>
	                    <td width="10%">
	                        <a title="按照日期正序排列"
	                            href="javascript:OrderByThis('CreateDate');">
	                            <b>日期</b>
	                            <img src="Content/images/grayarrow.gif" /></a>
	                    </td>
	                </tr>
	                <c:forEach var="bug" items="${searchBean.myClosedBugList }" varStatus="status">
	                <tr class="GrayBackground">
	                    <td>
	                        <a href="todealbug.html?id=${bug.id }" class="Blue BiggerFont" target="_blank">
	                            <b>${bug.id }#&nbsp;${bug.title }</b></a>
	                    </td>
	                    <c:choose>
	                    	<c:when test="${bug.priority == 1 }">
	                      <td class="Green">
	                          ${bug.priorityName }
	                      </td>
	                    	</c:when>
	                    	<c:when test="${bug.priority == 2 }">
	                      <td class="ThinGreen">
	                          ${bug.priorityName }
	                      </td>
	                    	</c:when>
	                    	<c:when test="${bug.priority == 3 }">
	                      <td class="Orange">
	                          ${bug.priorityName }
	                      </td>
	                    	</c:when>
	                    	<c:when test="${bug.priority == 4 }">
	                      <td class="Pink">
	                          ${bug.priorityName }
	                      </td>
	                    	</c:when>
	                    	<c:when test="${bug.priority == 5 }">
	                      <td class="Red">
	                          ${bug.priorityName }
	                      </td>
	                    	</c:when>
	                    	<c:otherwise>
	                    		<td>
	                          ${bug.priorityName }
	                      </td>
	                    	</c:otherwise>
	                    </c:choose>
	                    <td>
	                    <c:choose>
	                    	<c:when test="${bug.status == 1 }">
	                      <span class="RedBox">${bug.statusName }</span>
	                    	</c:when>
	                    	<c:when test="${bug.status == 2 }">
	                    		<span class="RedBox GreenBox">${bug.statusName }</span>
	                    	</c:when>
	                    	<c:when test="${bug.status == 3 }">
	                    		<span class="OrangeBox RedBox">${bug.statusName }</span>
	                    	</c:when>
	                    	<c:otherwise>
	                    		<span>${bug.statusName }</span>
	                    	</c:otherwise>
	                    </c:choose>
	                    </td>
	                    <td>
	                        ${bug.assignerName}
	                    </td>
	                    <td>
	                        ${bug.handlerName}
	                    </td>
	                    <td>
	                        ${bug.moduleName }
	                    </td>
	                    <td>
	                        ${bug.programName }
	                    </td>
	                    <td>
	                        <fmt:formatDate value="${bug.createDate }" pattern="yyyy-MM-dd"/>
	                    </td>
	                </tr>
	                </c:forEach>
	            </table>
	            </c:if>
	            </div>
	        </div>
	        <!--end of solution-->
	        <div class="clear">
	            <!-- -->
	        </div>
    	</div>
    </div>
    <!-- end of content -->
    <div class="clear">
        <!-- -->
    </div>
    <br />
</div>
<!-- end of wrapper-->
<%@ include file="Common/footer.jsp"%>
</body>
</html>